﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace ProjectEdificio
{
    public class ClearUser
    {
        private BDManagment bdm = BDManagment.getInstance();
        private string clear = null;

        public ClearUser(String clear)
        {
            this.clear = clear;
            clearUserProcess();
        }

        private void clearUserProcess()
        {
            int i = bdm.clearUser(clear);
            if (i == 1)
            {
                MessageBox.Show("Se ah borrado con éxito!");
            }
            else
            {
                MessageBox.Show("No se ah podido borrar!");
            }
        }
    }
}
